package com.naiterui.ehp.bs.wechat.protocol.result;

import java.io.Serializable;
import java.util.List;

import org.apache.commons.lang3.builder.ToStringBuilder;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * @author zhoupeipei
 * @date 2019/3/15 下午6:45
 * @since 1.0.0
 */
@JsonIgnoreProperties(ignoreUnknown = true)
public class MediaNews extends BaseResult implements Serializable{
    private static final long serialVersionUID = 4676863690593410076L;
    @JsonProperty("news_item")
    private List<News> newsList;

    public List<News> getNewsList() {
        return newsList;
    }

    public void setNewsList(List<News> newsList) {
        this.newsList = newsList;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this);
    }

    public static class News implements Serializable {
        private static final long serialVersionUID = -595302869749197337L;
        private String title;
        @JsonProperty("thumb_media_id")
        private String thumbMediaId;
        @JsonProperty("show_cover_pic")
        private String showCoverPic;
        private String author;
        private String digest;
        private String content;
        private String url;
        @JsonProperty("content_source_url")
        private String contentSourceUrl;
        @JsonProperty("need_open_comment")
        private Integer needOpenComment;
        @JsonProperty("only_fans_can_comment")
        private Integer onlyFansCanComment;
        @JsonProperty("thumb_url")
        private String thumbUrl;

        public String getTitle() {
            return title;
        }

        public void setTitle(String title) {
            this.title = title;
        }

        public String getThumbMediaId() {
            return thumbMediaId;
        }

        public void setThumbMediaId(String thumbMediaId) {
            this.thumbMediaId = thumbMediaId;
        }

        public String getShowCoverPic() {
            return showCoverPic;
        }

        public void setShowCoverPic(String showCoverPic) {
            this.showCoverPic = showCoverPic;
        }

        public String getAuthor() {
            return author;
        }

        public void setAuthor(String author) {
            this.author = author;
        }

        public String getDigest() {
            return digest;
        }

        public void setDigest(String digest) {
            this.digest = digest;
        }

        public String getContent() {
            return content;
        }

        public void setContent(String content) {
            this.content = content;
        }

        public String getUrl() {
            return url;
        }

        public void setUrl(String url) {
            this.url = url;
        }

        public String getContentSourceUrl() {
            return contentSourceUrl;
        }

        public void setContentSourceUrl(String contentSourceUrl) {
            this.contentSourceUrl = contentSourceUrl;
        }

        public Integer getNeedOpenComment() {
            return needOpenComment;
        }

        public void setNeedOpenComment(Integer needOpenComment) {
            this.needOpenComment = needOpenComment;
        }

        public Integer getOnlyFansCanComment() {
            return onlyFansCanComment;
        }

        public void setOnlyFansCanComment(Integer onlyFansCanComment) {
            this.onlyFansCanComment = onlyFansCanComment;
        }

        public String getThumbUrl() {
            return thumbUrl;
        }

        public void setThumbUrl(String thumbUrl) {
            this.thumbUrl = thumbUrl;
        }

        @Override
        public String toString() {
            return ToStringBuilder.reflectionToString(this);
        }
    }
}
